import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)
import Home from '../views/AboutView.vue'
const routes = [
  {
    path:"/",
    name:"home",
    component:Home,
    children:[
      {
        path:"/",
        redirect:"index"
      },
      {
        path: '/index',
        name: 'Index',
        component: () => import('../views/Index.vue'),
        meta:{
         
          keepAlive:true
        }
      },
      {
        path: '/course',
        name: 'course',
        component: () => import('../views/Course.vue'),
        meta:{
         
          keepAlive:true
        }
      },
      {
        path:"/main",
        name:"main",
        component:()=>import('../views/Mine.vue'),
        meta:{
         
          keepAlive:true
        }
      },
      {
        path:"/practice",
        name:"practice",
        component:()=>import('../views/Practice.vue'),
        meta:{
        
          keepAlive:true
        }
      },
      {
        path:"/record",
        name:"record",
        component:()=>import('../views/Record.vue'),
        meta:{
        
          keepAlive:true
        }
      },      
    ]
  },
  {
    path:"/setnewpass",
    name:"setnewpass",
    component:()=>import('../components/Main/setnewpass.vue'),
    meta:{
     
      keepAlive:true
    }
  },
  {
    path:"/Practivesearch",
    name:"Practivesearch",
    component:()=>import('../components/Practive/search.vue'),
    meta:{
     
      keepAlive:true
    }
  },
  {
    path:"/point",
    name:"point",
    component:()=>import('../components/Practive/point.vue'),
    meta:{
     
      keepAlive:true
    }
  },
  {
    path:"/paperPage",
    name:"paperPage",
    component:()=>import('../components/Practive/paperPage.vue'),
    meta:{
    
      keepAlive:true
    }
  },
  {
    path:"/exam",
    name:"exam",
    component:()=>import('../components/Practive/exam.vue'),
    meta:{
     
      keepAlive:true
    }
  },
  {
    path:"/errorques",
    name:"errorques",
    component:()=>import('../components/Practive/errorques.vue'),
    meta:{
      
      keepAlive:true
    }
  },
  {
    path:"/assess",
    name:"assess",
    component:()=>import('../components/Practive/assess.vue'),
    meta:{
     
      keepAlive:true
    }
  },           
  {
    path: '/teacherDetail',
    name: 'teacherDetail',
    component: () => import('../components/Teacher/TeacherDetail.vue'),
    meta:{
     
      keepAlive:true
    }
  },
  {
    path: '/courceDetail',
    name: 'courceDetail',
    component: () => import('../components/Cource/courceDetai.vue'),
    meta:{
     
      keepAlive:true
    }
  },
  {
    path: '/search',
    name: 'search',
    component: () => import('../components/Cource/search.vue'),
    meta:{
     
      keepAlive:true
    }
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('../views/login.vue'),
    meta:{
     
      keepAlive:true
    }
  },
  {
    path: '/smslogin',
    name: 'smslogin',
    component: () => import('../views/Smslogin.vue'),
    meta:{
     
      keepAlive:true
    }
  },
  {
    path: '/email',
    name: 'email',
    component: () => import('../views/Email.vue'),
    meta:{
    
      keepAlive:true
    }
  },
  {
    path: '/options',
    name: 'options',
    component: () => import('../components/Main/options.vue'),
    meta:{
     
      keepAlive:true
    }
  },
  {
    path: '/oto',
    name: 'oto',
    component: () => import('../components/Main/oto.vue'),
    meta:{
     
      keepAlive:true
    }
  },
  {
    path: '/info',
    name: 'info',
    component: () => import('../components/Main/info.vue'),
    meta:{
      
      keepAlive:true
    }
  },
  {
    path: '/setinfo',
    name: 'setinfo',
    component: () => import('../components/Main/setinfo.vue'),
    meta:{
     
      keepAlive:true
    }
  },
  {
    path: '/setsex',
    name: 'setsex',
    component: () => import('../components/Main/setsex.vue'),
    meta:{
      
      keepAlive:true
    }
  },
  {
    path: '/subjects',
    name: 'subjects',
    component: () => import('../components/Main/subjects.vue'),
    meta:{
     
      keepAlive:true
    }
  },
  {
    path: '/Concern',
    name: 'Concern',
    component: () => import('../components/Main/Concern.vue'),
    meta:{
     
      keepAlive:true
    }
  },
  {
    path: '/Collect',
    name: 'Collect',
    component: () => import('../components/Main/Collect.vue'),
    meta:{
     
      keepAlive:true
    }
  },
  {
    path: '/coursedet',
    name: 'coursedet',
    component: () => import('../components/Cource/coursedet.vue'),
    meta:{
     
      keepAlive:true
    }
  },
  {
    path: '/Order',
    name: 'Order',
    component: () => import('../components/Main/Order.vue'),
    meta:{
     
      keepAlive:true
    }
  },
  
  {
    path: '/MyStudy',
    name: 'MyStudy',
    component: () => import('../views/MyStudy.vue'),
    meta: {

      keepAlive: true
    }
  },
  {
    path: '/MyBalance',
    name: 'MyBalance',
    component: () => import('../components/Main/MyBalance.vue'),
    meta: {

      keepAlive: true
    }
  },
  {
    path: '/MemberOrder',
    name: 'MemberOrder',
    component: () => import('../components/Main/MemberOrder.vue'),
    meta: {

      keepAlive: true
    }
  },
  {
    path: '/CourseOrder',
    name: 'CourseOrder',
    component: () => import('../components/Main/CourseOrder.vue'),
    meta: {

      keepAlive: true
    }
  },
  {
    path: '/MyCoupon',
    name: 'MyCoupon',
    component: () => import('../components/Main/MyCoupon.vue'),
    meta: {

      keepAlive: true
    }
  },
  {
    path: '/StudyCard',
    name: 'StudyCard',
    component: () => import('../components/Main/StudyCard.vue'),
    meta: {

      keepAlive: true
    }
  },
  {
    path: '/MemBer',
    name: 'MemBer',
    component: () => import('../components/Main/MemBer.vue'),
    meta: {

      keepAlive: true
    }
  },
  {
    path: '/CalenDar',
    name: 'CalenDar',
    component: () => import('../components/Main/CalenDar.vue'),
    meta: {

      keepAlive: true
    }
  },
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
